import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'

// 项目大纲
const Home = ()=> import(/* webpackChunkName: "project" */ '../views/project/Home.vue');
// 项目进度查询
const Progress = ()=> import(/* webpackChunkName: "project" */ '../views/project/Progress.vue');
//新增需求计划
const Change = ()=> import(/* webpackChunkName: "project" */ '../views/project/Change.vue');
//需求计划审核
const PlanReview = ()=> import(/* webpackChunkName: "project" */ '../views/project/PlanReview.vue');
//计划分配
const PlanDis = ()=> import(/* webpackChunkName: "project" */ '../views/project/PlanDis.vue');
//自己的项目
const OwnProject = ()=> import(/* webpackChunkName: "project" */ '../views/project/OwnProject.vue');
//自己的计划
const OwnPlan = ()=> import(/* webpackChunkName: "project" */ '../views/project/OwnPlan.vue');
// 消息提醒
const MessageAlert = ()=> import(/* webpackChunkName: "news" */ '../views/news/MessageAlert.vue');

// 加班申请
const OvertimeApply = ()=> import(/* webpackChunkName: "overtime" */ '../views/overtime/OvertimeApply.vue');
// 加班审核
const OvertimeAudit = ()=> import(/* webpackChunkName: "overtime" */ '../views/overtime/OvertimeAudit.vue');
// 加班列表
const OvertimeList = ()=> import(/* webpackChunkName: "overtime" */ '../views/overtime/OvertimeList.vue');
// 权限管理
const Limit = ()=> import(/* webpackChunkName: "user" */ '../views/user/UserLimit.vue');


Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/progress',
    name: 'Progress',
    component: Progress
  },
  {
    path: '/change',
    name: 'change',
    component: Change
  },
  {
    path: '/planDis',
    name: 'planDis',
    component: PlanDis
  },
  {
    path: '/planReview',
    name: 'planReview',
    component: PlanReview
  },
  {
    path: '/ownProject',
    name: 'ownProject',
    component: OwnProject
  },
  {
    path: '/ownPlan',
    name: 'ownPlan',
    component: OwnPlan
  },
  {
    path: '/messageAlert',
    name: 'MessageAlert',
    component: MessageAlert
  },
  {
    path: '/overtimeApply',
    name: 'overtimeApply',
    component: OvertimeApply
  },
  {
    path: '/overtimeAudit',
    name: 'overtimeAudit',
    component: OvertimeAudit
  },
  {
    path: '/overtimeList',
    name: 'overtimeList',
    component: OvertimeList
  },
  {
    path: '/limit',
    name: 'limit',
    component: Limit
  }

  
]

const router = new VueRouter({
  routes
})

export default router
